<html>
<body>
Reports labeled rules of <code>switch</code> statements or <code>switch</code> expressions that have a redundant code block.
<p>Example:</p>
<pre><code>
  String s = switch (n) {
    case 1 -> { yield Integer.toString(n); }
    default -> "default";
  };
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  String s = switch (n) {
    case 1 -> Integer.toString(n);
    default -> "default";
  };
</code></pre>
<!-- tooltip end -->
<p><small>New in 2019.1</small></p>
</body>
</html>